package com.ouyeel.wlxer.adapter;

import android.content.Context;

import com.ouyeel.wlxer.R;
import com.ouyeel.wlxer.base.BaseViewHolder;
import com.ouyeel.wlxer.bean.MyLine;
import com.ouyeel.wlxer.util.PublicAdapter;

import java.util.List;

/**
 * Created by rankaifeng on 2017/11/20.
 */

public class MyLineAdapter extends PublicAdapter<MyLine> {
    List<MyLine> myLineList;

    public MyLineAdapter(Context context, int layoutId, List<MyLine> myLineList) {
        super(context, layoutId, myLineList);
        this.myLineList = myLineList;
    }

    @Override
    public void convert(BaseViewHolder holder, int position) {
        holder.setText(R.id.tv_line_start, myLineList.get(position).getStartPlace());
        holder.setText(R.id.tv_line_end, myLineList.get(position).getEndPlace());
    }
}
